package com.zxl.threadLocal;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.ListIterator;

public class FirstClass {
    
    private static final ThreadLocal<String> FIRST_LOCAL = new ThreadLocal<>();
    
    public String get(){
        System.out.println(FIRST_LOCAL);
        return FIRST_LOCAL.get();
    }
    
    public void set(String value){
        FIRST_LOCAL.set(value);
    }
    
    public void test() {
    	
    }
    
    public static void main(String[] args) throws Exception{
    	List<Integer> asList = Arrays.asList(1,2,3);
    	List<Integer> list = new ArrayList<Integer>(asList);
    	ListIterator<Integer> iterator = list.listIterator();
//    	iterator.next();
//    	iterator.remove();
    	iterator.add(4);	
    	list.add(4);
    	System.out.println(list.size());
	}
}
